package com.smedi.ismedi.inmail.core.port.adapter.persistence.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.smedi.ismedi.database.starter.model.BasicFieldEntity;
import lombok.*;

import java.time.LocalDateTime;
import java.util.HashSet;
import java.util.List;

/**
 * 通知公告主表Entity类
 *
 * @author jiangqinxuan
 * @date 2021/07/26
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName(value = "iml_announcement")
public class AnnouncementEntity extends BasicFieldEntity {
    /**
     * 标题
     */
    private String title;

    /**
     * 简介
     */
    private String content;

    /**
     * 任务状态
     */
    private String taskStatus;

    /**
     * 发布人id
     */
    private Long publisherId;

    /**
     * 审核人id
     */
    private Long reviewerId;

    /**
     * 通知公告类型
     */
    @TableField(value = "announcement_type")
    private String type;

    /**
     * 通知公告是否内部可见
     */
    @TableField(value = "is_internal")
    private Boolean internal;

    /**
     * 流程相关内容是否可见
     */
    @TableField(value = "is_task_public")
    private Boolean taskPublic;

    /**
     * 备注
     */
    private String taskComment;

    /**
     * 发布时间
     */
    private LocalDateTime publishDateTime;

    /**
     * 审核时间
     */
    private LocalDateTime reviewDateTime;

    /**
     * 创建时间
     */
    private LocalDateTime createDateTime;
}